package org.yelongframework.yaml.generator;

import java.io.Writer;

import org.yelongframework.yaml.YamlMap;

/**
 * yaml生成器
 * 
 * @since 1.0.0
 */
public interface YamlGenerator {

	/**
	 * 生成Yaml文件
	 * @param yamlMap yaml映射
	 * @return Yaml字符串
	 */
	String generate(YamlMap yamlMap);

	/**
	 * 生成Yaml
	 * @param yamlMap yaml映射
	 * @param writer 输出的流
	 */
	void generate(YamlMap yamlMap, Writer writer);

}
